TOP=${PWD}/..
CFLAGS += -I${TOP}/tools/mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/include
LDFLAGS += -L${TOP}/tools/mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/lib
LIBS += -lmysql -lpthread

bin_PROGRAMS = repsync

repsync_SOURCES = repsync.h repsync.cc		 	\
				  log_event.h log_event.cc 		\
				  rpl_constants.h 				\
				  sql_string.h sql_string.cc 	\
				  sql_list.h sql_list.cc 		\
				  rpl_utility.h rpl_tblmap.h 	\
				  my_decimal my_decimal.cc
				
repsync_CXXFLAGS = $(CXXFLAGS) -I${TOP}/tools/mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit/include

if DEBUG
repsync_CXXFLAGS += -ggdb -g -O1 -DDBUG_OFF
else
repsync_CXXFLAGS += -DNDEBUG -DDBUG_OFF
endif
